home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 99
/
(Vol 99) Jan 19 2010.iso
/
Games
/
balls.swf
/
scripts
/
frame_1
/
DoAction.as
< prev
Wrap
Text File
|
2010-01-19
|
929b
|
27 lines
stop();
bonusAdd = 0;
bonusGive = false;
Stage.scaleMode = "noScale";
n = 0;
_global.shoot = function()
{
n++;
if(n == 50 || n == 400 || n == 1000 || n == 5000)
{
if(n == 5000)
{
_root.spawn.attachMovie("menuBalls","ball" + n,_root.spawn.getNextHighestDepth(),{_x:225 + random(200) - 100,_y:500,dx:random(10) - 5,dy:-5,_xscale:400,_yscale:400,n:1000,_currentframe:2});
_root.spawn["ball" + n].gotoAndStop(2);
}
else
{
_root.spawn.attachMovie("menuBalls","ball" + n,_root.spawn.getNextHighestDepth(),{_x:225 + random(200) - 100,_y:500,dx:random(10) - 5,dy:-5,_xscale:400,_yscale:400,n:n,_currentframe:2});
_root.spawn["ball" + n].gotoAndStop(2);
}
}
else
{
_root.spawn.attachMovie("menuBalls","ball" + n,_root.spawn.getNextHighestDepth(),{_x:225 + random(200) - 100,_y:500,dx:random(10) - 5,dy:-5});
}
};